package cn.lg.soar.system.biz.modules.auth.entity;

import cn.lg.soar.database.base.entity.ITenantEntity;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author luguoxiang
 * @date 2021-08-21
 * 开源项目：https://gitee.com/lgx1992/lg-soar 求star！请给我star！请帮我点个star！
 */
@Getter
@Setter
@TableName("lg_sys_post_2_tag")
public class PostTagRel implements ITenantEntity, Serializable {

    @TableId(type = IdType.NONE)
    private Long postId;

    private Long tagId;

    @TableField(fill = FieldFill.INSERT)
    protected LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT)
    private Long createBy;

    @JsonIgnore
    @TableField(select = false)
    private Integer tenantId;
}
